# Contributor: Paul Kilar <pkilar@gmail.com>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=scapy
pkgver=2.5.0
pkgrel=3
pkgdesc="Powerful interactive packet manipulation"
url="https://scapy.net/"
arch="noarch"
license="GPL-2.0-only"
depends="python3"
makedepends="python3-dev py3-setuptools"
install="$pkgname.post-install"
subpackages="$pkgname-doc $pkgname-pyc"
source="$pkgname-$pkgver-3.tar.gz::https://github.com/secdev/scapy/archive/v$pkgver.tar.gz"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py check
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
368f12246047f4b12411e3bfd9b772150d27848b3b1434cd9cc55ca2349320d14f2641d5c219c33231e9f86ced7c491cd52c362a76e2d524f407e8210c57b7bf  scapy-2.5.0-3.tar.gz
"
